<div class="form-group">
  <label class="col-sm-2 control-label">
    #(jxrb.message("systemStaffInfo.phone"))
  </label>
    #if(action == "added")
    <div class="col-sm-3" id ="addPhone">
      <div id="selectdiv">
        #modeltag({tagcode:"jxbrms_systemdict_list",where:"DICTTYPE_ID=?",params:"phone_type"})
        <select class="form-control m-b" name="sphone">
          #for(x : systemdict_list)
          <option value="#(x.dict_id)"  #if((systemOrganize.phone ??) == x.dict_id) selected #end>#(x.dict_name)</option>
          #end
        </select>
      </div>
      <input name="phone" class="form-control" type="text" value="#(systemStaffInfo.phone ??)" id="phone0"/>
      <input type="button"  value='#(jxrb.message("action.add"))' id="addP" onclick="addPhones()"/>
    </div>
    #else if(action == "edited")
    <div class="col-sm-3" id ="addPhone">
      #if(systemOrganize.phone ??)
      #for(ph : systemOrganize.phoneInfo)
      <div id ="divP_#(for.index)">
        <div id="selectdiv" >
          #modeltag({tagcode:"jxbrms_systemdict_list",where:"DICTTYPE_ID=?",params:"phone_type"})
          <select class="form-control m-b" name="sphone">
            #for(x : systemdict_list)
            <option value="#(x.dict_id)"  #if((ph.type ??) == x.dict_id) selected #end>#(x.dict_name)</option>
            #end
          </select>
        </div>
        <input name="phone" class="form-control" type="text" value="#(ph.value ??)"/>
        #if((for.index) != 0)
          <input type="button" value='#(jxrb.message("action.del"))'  onclick="deletePhone('#(for.index)"/>
        #end
        #if((for.index) == 0)
          <input type="button"  value='#(jxrb.message("action.add"))' id="addP" onclick="addPhones()"/>
        #end
      </div>
      #end
      #else
        <div id="selectdiv" >
          #modeltag({tagcode:"jxbrms_systemdict_list",where:"DICTTYPE_ID=?",params:"phone_type"})
          <select class="form-control m-b" name="sphone">
            #for(x : systemdict_list)
            <option value="#(x.dict_id)"  #if((systemOrganize.phone ??) == x.dict_id) selected #end>#(x.dict_name)</option>
            #end
          </select>
        </div>
        <input name="phone" class="form-control" type="text" value=""  id="phone0"/>
        <input type="button"  value='#(jxrb.message("action.add"))' id="addP" onclick="addPhones()"/>
      #end
    </div>
    #else
      #if(systemOrganize.phone??)
        #for(ph : systemOrganize.phoneInfo)
        <div  class="col-sm-3" id ="addPhone" >
          <div id="selectdiv" >
            #modeltag({tagcode:"jxbrms_systemdict_list",where:"DICTTYPE_ID=?",params:"phone_type"})
            <select class="form-control m-b" name="sphone">
              #for(x : systemdict_list)
              <option value="#(x.dict_id)"  #if((ph.type ??) == x.dict_id) selected #end>#(x.dict_name)</option>
              #end
            </select>
          </div>
          <input name="phone" class="form-control" type="text" value="#(ph.value ??)"/>
        </div>
        #end
      #else
        <div  class="col-sm-3" id ="addPhone" >
          <div id="selectdiv" >
            #modeltag({tagcode:"jxbrms_systemdict_list",where:"DICTTYPE_ID=?",params:"phone_type"})
            <select class="form-control m-b" name="sphone">
              #for(x : systemdict_list)
              <option value="#(x.dict_id)"  #if((systemOrganize.phone ??) == x.dict_id) selected #end>#(x.dict_name)</option>
              #end
            </select>
          </div>  
          <input name="phone" class="form-control" type="text" value="" />
        </div>
      #end
    #end
</div>
<div class="hr-line-dashed"></div>